package com.example.demonstrate.wang.service.impl;

import com.example.demonstrate.wang.entity.ProfileFace;
import com.example.demonstrate.wang.model.JianfengFace;
import com.example.demonstrate.wang.service.FaceTransformer;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.stream.Collectors;

/**
 * @Author along
 * @Date 2024/6/21 16:09
 */

@Service("jianfengTransformer")
public class JianfengTransformer implements FaceTransformer<JianfengFace, ProfileFace> {
    @Override
    public List<ProfileFace> transform(List<JianfengFace> jianfengFaceList) {
        return jianfengFaceList.stream()
                .map(this::transform)
                .collect(Collectors.toList());
    }

    private ProfileFace transform(JianfengFace jianfengFace) {
        // TODO jianfengFace convert
        return new ProfileFace();
    }
}
